bitkeeper revision 1.1287 (425aba41d9E1CIacFmT771MdoJl_LQ)
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 11 Apr 2005 17:56:17 +0000 (17:56 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 11 Apr 2005 17:56:17 +0000 (17:56 +0000)
Cull some duplicated code from nmi handling in entry.S.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/x86_32/entry.S

index cb3eabb104113dfac539372ac2da708e52a927f0..c860e4893754c36e7542f4814ddf118ec684ce51 100644 (file)
@@ -573,16 +573,11 @@ do_watchdog_tick:
         movl  %edx,%ds
         movl  %edx,%es
         movl  %esp,%edx
-       pushl %ebx   # reason
-       pushl %edx   # regs
+        pushl %ebx   # reason
+        pushl %edx   # regs
         call  SYMBOL_NAME(do_nmi)
-       addl  $8,%esp
-        movl  XREGS_eflags(%esp),%eax
-        movb  XREGS_cs(%esp),%al
-        testl $(3|X86_EFLAGS_VM),%eax
-       jz    restore_all_xen
-        GET_CURRENT(%ebx)
-        jmp   restore_all_guest
+        addl  $8,%esp
+        jmp   ret_from_intr
 
 defer_nmi:
         movl  $FIXMAP_apic_base,%eax
@@ -616,7 +611,7 @@ nmi_parity_err:
 nmi_out:movl  %ss:XREGS_eflags(%esp),%eax
         movb  %ss:XREGS_cs(%esp),%al
         testl $(3|X86_EFLAGS_VM),%eax
-       jz    restore_all_xen
+        jz    restore_all_xen
         movl  $(__HYPERVISOR_DS),%edx
         movl  %edx,%ds
         movl  %edx,%es